<div class="main-search-box layui-form" th:fragment="search(index)">
	<div class="articles garr-container-white" style="min-height: 0px; padding-bottom: 0px; box-shadow: none;">
		<div class="title-tab-status-wrap">
			<div class="filter-field">
				<span class="filter-title">状态</span>
				<span class="filter-item selected" lay-event="filter" data-id="">全部</span>
				<span class="filter-item unselected" lay-event="filter" data-id="0">已发布</span>
				<span class="filter-item unselected" lay-event="filter" data-id="1">草稿</span>
				<span class="filter-item unselected" lay-event="filter" data-id="2">仅我可见</span>
			</div>
			<div class="filter-big-field layui-form-item">
				<span class="filter-title">查询条件</span>
                <div class="layui-inline" th:if="${index == 1}">
                    <div class="layui-input-inline">
						<select name="articleType" th:id="'articleType' + ${index}">
				            <option value="">不限类型</option>
				            <option value="0">原创</option>
				            <option value="1">转载</option>
				            <option value="2">翻译</option>
				        </select>
		            </div>
                </div>
                <div class="layui-inline" th:if="${index == 2 || index == 3 || index == 4 || index == 5}">
                    <div class="layui-input-inline">
				        <select name="formatId" th:id="'formatId' + ${index}">
				            <option value="">选择业态分类</option>
				            <option th:each="item:${formats}" th:value="${item.formatId}" th:text="${item.formatName}"></option>
				        </select>
				   </div>
                </div>
                <div class="layui-inline" th:if="${index == 6}">
                    <div class="layui-input-inline">
				        <select name="serviceItems" th:id="'serviceItem' + ${index}">
				            <option value="">选择服务项目</option>
				            <option th:each="item:${serviceItems}" th:value="${item.sid}" th:text="${item.name}"></option>
				        </select>
		        	</div>
                </div>
                <div class="layui-inline" th:if="${index == 7}">
                    <div class="layui-input-inline">
				        <select name="formatId" th:id="'shopId' + ${index}">
				            <option value="">活动分类</option>
				            <option th:each="item:${formats}" th:value="${item.formatId}" th:text="${item.formatName}"></option>
				        </select>
		        	</div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" name="limittime" th:id="'limittime' + ${index}" placeholder="开始时日期- 结束日期" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" th:id="'title' + ${index}" name="title" placeholder="请输入标题关键词" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
		        		<button class="layui-btn layui-btn-sm" lay-filter="userSearchSubmit" lay-submit><i class="layui-icon layui-icon-search"></i>搜索</button>
					</div>
                </div>
			</div>
		</div>
	</div>
</div>

